#include<iostream>
using namespace std;
class Complex{
	public:
		Complex(double r=0.0,double i=0.0):
			real(r),imaginary(i){};
			Complex operator+(int r){
				return Complex(real+r,imaginary);
			}
			friend Complex operator+(int r,const Complex&C);
			void display() const{
		cout << real << "," << imaginary << endl;}
	private:
		double real;
		double imaginary;
	
};
int main()
{
Complex c(1,2);
Complex a(2,3);
c=a+5;
c.display();
a=c+5;
a.display();
return 0;

}
